using GoodDotNet.IService;
using GoodDotNet.Core.Entity;
using GoodDotNet.Core.Model;
using GoodDotNet.Core.Data;

namespace GoodDotNet.Service
{
  
  /**
   *
   * @author 大钊
   * @since 2023/8/13 19:17:51
   */
    public class TestService :TestIService
    {
      UnitOfWork _unitOfWork;
      public TestService(UnitOfWork unitOfWork)
      {
        _unitOfWork = unitOfWork;
      }
    
	

		
		/// <summary>
		/// 
		/// </summary>
		/// <returns></returns>
		public List<TestGetPageTestDataModel> GetPageTest(TestGetPageTestParModel pars)
		{
		  
		  var list=_unitOfWork.TestRepository.GetPageTest( pars);
		  
		  return list;
		
		}
		
		


		
		
		/// @author 大钊
		/// @since 2023/9/7 15:00:23
		/// <summary>
		/// 
		/// </summary>
		/// <returns></returns>
		public int CountTest( TestCountTestParModel pars )
		{
		  
		  var count=_unitOfWork.TestRepository.CountTest( pars);
		  
		  return count;
		}
		
		

}
}
